Skip to content

feat: add get_member_info route#237

Merged
lseixas merged 2 commits into
devfrom
feat/get-member-info-route
Mar 5, 2026
Merged

feat: add get_member_info route#237
lseixas merged 2 commits into
devfrom
feat/get-member-info-route

Conversation

@pleomoreno

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new get_member_info route designed to retrieve simplified member information for portfolio display purposes. The implementation creates a separate module from the existing get_member route, following clean architecture patterns with distinct usecase, controller, viewmodel, and presenter layers.

Changes:

  • Adds GetMemberInfoUsecase that retrieves basic member data and associated projects (without strike/action history complexity)
  • Adds GetMemberInfoViewModel that returns a simplified response with only portfolio-relevant fields
  • Registers the new Lambda function in infrastructure with GET method and proper authorization

Reviewed changes

Copilot reviewed 9 out of 13 changed files in this pull request and generated 21 comments.

Show a summary per file
File Description
src/modules/get_member_info/app/get_member_info_viewmodel.py Implements simplified viewmodel returning only portfolio fields (name, ra, role, stack, year, course, projects, hired_date, photo)
src/modules/get_member_info/app/get_member_info_usecase.py Implements usecase that validates user, checks active status, and enriches member with project list
src/modules/get_member_info/app/get_member_info_presenter.py Lambda handler that integrates with API Gateway authorizer for authentication
src/modules/get_member_info/app/get_member_info_controller.py Controller handling request validation and error responses
tests/modules/get_member_info/app/test_get_member_info_viewmodel.py Test file with critical issues: imports and tests reference wrong module (get_member instead of get_member_info)
tests/modules/get_member_info/app/test_get_member_info_usecase.py Test file with critical issues: imports and tests reference wrong module with incorrect parameters
tests/modules/get_member_info/app/test_get_member_info_presenter.py Test file with critical issues: imports wrong module, naming inconsistencies
tests/modules/get_member_info/app/test_get_member_info_controller.py Test file with critical issues: imports wrong module, tests validate incorrect behavior
iac/iac/lambda_stack.py Properly registers new get_member_info Lambda with GET method and adds to permission lists

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/modules/get_member_info/app/test_get_member_info_viewmodel.py Outdated
Comment thread tests/modules/get_member_info/app/test_get_member_info_presenter.py Outdated
Comment thread tests/modules/get_member_info/app/test_get_member_info_presenter.py Outdated
Comment thread tests/modules/get_member_info/app/test_get_member_info_controller.py Outdated
Comment thread tests/modules/get_member_info/app/test_get_member_info_controller.py Outdated
Comment thread tests/modules/get_member_info/app/test_get_member_info_usecase.py Outdated
Comment thread tests/modules/get_member_info/app/test_get_member_info_usecase.py Outdated
Comment thread tests/modules/get_member_info/app/test_get_member_info_presenter.py Outdated
Comment thread tests/modules/get_member_info/app/test_get_member_info_controller.py Outdated
Comment thread tests/modules/get_member_info/app/test_get_member_info_viewmodel.py Outdated

@lseixas lseixas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boa, só falta adicionar a função pra dentro da lista de permissões no lambda stack

Comment thread iac/iac/lambda_stack.py
Comment thread iac/iac/lambda_stack.py
@lseixas

lseixas commented Feb 27, 2026

Copy link
Copy Markdown
Member

@pleomoreno revisa os comentários do copilot tb e faz as alterações que ele ta pedindo

@pleomoreno pleomoreno closed this Feb 28, 2026
@pleomoreno pleomoreno reopened this Feb 28, 2026
@pleomoreno pleomoreno requested a review from lseixas February 28, 2026 00:08
@lseixas lseixas merged commit 16c1b93 into dev Mar 5, 2026
4 checks passed
@lseixas lseixas deleted the feat/get-member-info-route branch March 5, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants